#include "Blocks/FireworksBlock.h"

namespace PocketSurvival
{
    void FireworksBlock::getCreativeValues(std::vector<int32_t> &blockVec)
    {
		int32_t color = 0;
		while (color < 8)
		{
			int32_t num;
			for (int32_t altitude = 0; altitude < 2; altitude = num)
			{
				for (int32_t flickering = 0; flickering < 2; flickering = num)
				{
					for (int32_t shape = 0; shape < (uint8_t)Shape::ShapeCount; shape = num)
					{
						blockVec.push_back(Terrain::MakeBlockValue(215, 0, SetColor(SetAltitude(SetShape(SetFlickering(0, flickering != 0), (Shape)shape), altitude), color)));
						num = shape + 1;
					}
					num = flickering + 1;
				}
				num = altitude + 1;
			}
			num = color + 1;
			color = num;
		}
    }

    int32_t FireworksBlock::getIndex()
    {
        return Index();
    }
    const std::string &FireworksBlock::getBlockName()
    {
        static std::string blockName = "FireworksBlock";
        return blockName;
    }
	
} // namespace PocketSurvival
